<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<script type="text/javascript">
</script>
<form id="pagerForm" method="post" action="${base }/admin/photo/Photo">
	<input type="hidden" name="status" value="${param.status}">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="20" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>

<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="${base}/admin/photo/Photo" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>分类名称：</label>
				<input type="text" name="keyword"/>
			</li>
		</ul>
		
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base }/admin/photo/photo_classify_edit.jsp" target="dialog" rel="photoEdit"><span>添加新类</span></a></li>
			<li><a title="确实要删除这些记录吗?" target="removeSelected" href="${base}/admin/photo/deleteTypes" class="delete"><span>批量删除</span></a></li>
			<li><a title='上传' target='dialog' href="${base}/admin/photo/photo_upload.jsp" rel="photoUpload" ><span>上传</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<!--
<div class="tabs" currentIndex="0" eventType="hover">
	<div class="tabsHeader">
		<div class="tabsHeaderContent">
			<ul>
			<li class="selected"><a href=""><span>类名称</span></li>
			<li><a href=""><span>类名称</span></li>
			<li><a href=""><span>类名称</span></li>
			<li><a href=""><span>类名称</span></li>
			</ul>
		</div>
	</div>
</div>
  -->
	<table class="table" width="100%" layoutH="138" id="typelist">
		<thead>
			<tr>
				<th width="30"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
				<th width="50" align="center">类名称</th>
				<th width="50" align="center">创建者</th>
				<th width="50" align="center">别名</th>
				<th width="100" align="center">日期</th>
				<th width="50">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${obj.list }">
				<tr>
					<td><input name='ids' value="${item.id }" type='checkbox'></td>
					<td>${item.name }</td>
					<td>${item.user.userName }</td>
					<td>${item.alias }</td>
					<td>${item.createTime }</td>
					<td><a title='删除' target='navTabTodo' href="${base}/admin/photo/deleteType/${item.id}" class='' title='确定要删除吗？'>删除</a>&nbsp;&nbsp;
					<a title='编辑' target='dialog' href="${base }/admin/photo/showType/${item.id}" class='btnEdit'>编辑</a>&nbsp;&nbsp;
					<a title='查看' target='navTab' href="${base}/admin/photo/showAllPhoto/${item.id}" rel="photoShow" >查看</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" change="navTabPageBreak" param="numPerPage">
				<option value="20" ${obj.pager.numPerPage==20?"selected":"" }>20</option>
				<option value="50" ${obj.pager.numPerPage==50?"selected":"" }>50</option>
				<option value="100" ${obj.pager.numPerPage==100?"selected":"" }>100</option>
				<option value="200" ${obj.pager.numPerPage==200?"selected":"" }>200</option>
			</select>
			<span>条，共${obj.pager.totalCount}条</span>
		</div>
		<div id="artTypePager" class="pagination" targetType="navTab" totalCount="${obj.pager.totalCount}" numPerPage="${obj.pager.numPerPage}" pageNumShown="10" currentPage="${obj.pager.pageNum}"></div>
	</div>
</div>
